<?php

namespace backend\modules\gii;

use yii\web\Response;

class Module extends \yii\gii\Module
{

    /**
     * @param $action
     * @return bool
     * @throws \yii\web\ForbiddenHttpException
     */
    public function beforeAction($action)
    {
        \Yii::$app->getResponse()->off(Response::EVENT_BEFORE_SEND);
        $this->setViewPath("@vendor/yiisoft/yii2-gii/src/views");
        return parent::beforeAction($action);
    }


}